import tushare as ts
from StockDataFetcher import StockDataFetcher 

sd = StockDataFetcher()
# 设置 tushare 的 token
pro = sd.init_tushare()

# 获取行业板块信息
industry_sectors = pro.ths_index(exchange='A')
print('行业板块信息：')
for index, row in industry_sectors.iterrows():
    print(row['name'])
    
#industry_sectors.to_excel('industry_sectors.xlsx', index=False)
# 获取概念板块信息
